<?php
namespace TeamPlayers;

class baseController {

	/**
	 * A generic method to be called after a form has been posted,
	 * for redirecting to the original source. Uses headers to to
	 * avoid the re-post problem.
	 */
	public function refRedirect($source = false){
		if(!$source){ // redirect to the original source
			
		} else { // redirect to a manually specified target
			header("location: http://".urlRoot."$source");
		}
	}
	
	private function display404(){
		TeamPlayers::$smarty->display("404.tpl");
	}
	
}